const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  cachedViews: state => state.app.cachedViews,
  rawMenu: state => state.app.rawMenu,
  userInfo: state => state.user.userInfo,
  token: state => state.user.token,
  userType: state => {
    return state.user.userInfo ? state.user.userInfo.userType : ''
  },
  webInfo: state => state.user.webInfo,
}
export default getters
